var wineApp = wineApp || {};
wineApp.faq = (function() {
    var initPage = function() {
        loadFaq();
        var date = wineApp.tool.formateDate(new Date(), "yyyy-MM-dd");
        $('#post-date').html(date)
    }
    var resourceURL = wineApp.tool.getResourceURL();
    var loadFaq = function() {
        var ajaxUrl = wineApp.CONFIG.API.jzdetail
        wineApp.ajax.post(ajaxUrl, {
            id: "10049"
        }).done(function(data) {
            $('#content').html(data.detail.content);
            //$('#barcode').attr("src", resourceURL + "/" + data.detail.titleimg);
            $('#vcount').html(data.detail.vcount);
        });
    }
    return {
        initPage: initPage
    }
})();

$(document).ready(function() {
    //$('.wine_footer').remove();
    wineApp.common.initHeaderIcon(0, true, {
        camera: false,
        search: false
    });
    wineApp.faq.initPage();
    //wineApp.common.initTabs('#tabs');
});